﻿// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
Person p = new Person();
Person.Name = "Test";
Console.WriteLine(p.GetType());// Person
Console.WriteLine(Person.Name);

my.Person p2 = new my.Person();
p2.Name = "Test";
p2.Age = 30;
p2.Score = 20.5;

Console.WriteLine("{0},{1},{2}",p2.Name,p2.Age,p2.Score);

Console.WriteLine(p2.GetType());//my.Person

public class Person
{
    // ？申明可以为空
    public static string? Name { get; set; }
    public static int Id { get; set; }
}


namespace my
{
    public class Person
    {
        String? _name;
        int _age;
        double _score;

        public int Age {get => _age;set => _age = value;}
        public String? Name { get => _name; set => _name = value;}
        public double Score { get => _score; set => _score = value; }
    }
}